<?php

namespace app\admin\model;
use think\model\relation\BelongsTo;
use think\Model;

/**
 * PageModule
 */
class PageModule extends Model
{
    // 表名
    protected $name = 'page_module';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = false;


    public function shop(): BelongsTo
    {
        return $this->belongsTo(Shop::class, 'shop_id');
    }

    public function pagepath(): BelongsTo
    {
        return $this->belongsTo(PagePath::class, 'page_id'); 
    }


}